@import "tailwindcss";
@import "./md-html-dock/styles/content-theme.css";
@import "./md-html-dock/styles/tiptap.css";

/* 修复长文本换行问题 */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 隐藏所有默认焦点样式 */
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* 自定义滚动条样式 */
.scrollbar-thin {
  scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-thumb-slate-300::-webkit-scrollbar-thumb {
  background-color: rgb(203 213 225);
  border-radius: 3px;
}

.scrollbar-thumb-slate-300::-webkit-scrollbar-thumb:hover {
  background-color: rgb(148 163 184);
}

.scrollbar-thumb-blue-300::-webkit-scrollbar-thumb {
  background-color: rgb(147 197 253);
  border-radius: 3px;
}

.scrollbar-thumb-blue-300::-webkit-scrollbar-thumb:hover {
  background-color: rgb(59 130 246);
}

.scrollbar-track-blue-100::-webkit-scrollbar-track {
  background-color: rgb(219 234 254);
  border-radius: 3px;
}

/* 多行文本截断 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.3;
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f5f6f7;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #e8eaed;
  border-radius: 3px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
